import { Component } from '@angular/core';
import { Router } from '@angular/router';

import * as Parse from "parse"
@Component({
  selector: 'app-my-sign',
  templateUrl: './my-sign.component.html',
  styleUrls: ['./my-sign.component.scss']
})
export class MySignComponent {
  password:string=''
  name:string=''
  userdata:any
  constructor(private router:Router){
    this.userdata = Parse.User.current()
  }
  login(){
    Parse.User.logIn(this.name,this.password).then(data=>{
      this.userdata = data
      this.router.navigate(["/mobile-cooking/my"])
    })
  }
}
